/*
 * @Author: typ
 * @Date: 2025-02-26 09:20:18
 * @LastEditors: typ
 * @LastEditTime: 2025-02-26 17:14:11
 * @FilePath: /onemap/src/main.js
 * @Description: 
 */
import './assets/main.css'

import { createApp } from 'vue'
import store from './store'

import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus' //全局引入
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import './assets/iconfont/iconfont.css'
import './assets/fonts/font.css';
// svg图标
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon/index.vue'
import './style/common.scss';
// 注册指令
import plugins from './plugins' // plugins

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(store)
app.use(ElementPlus)
app.use(router)
app.use(plugins)
app.component('svg-icon', SvgIcon)


app.mount('#app')
